//
//  prefixHeader.swift
//  Here_Swift
//
//  Created by 童煊 on 2017/12/25.
//  Copyright © 2017年 童煊. All rights reserved.
//

import UIKit
import ReactiveCocoa
import SnapKit
import Alamofire

/** 颜色*/
func UIColorFromRGB(rgbValue:Int) -> UIColor {
    return UIColor.init(red: CGFloat(Float(((rgbValue & 0xFF0000) >> 16))/255.0), green: CGFloat(Float(((rgbValue & 0xFF00) >> 8))/255.0), blue: CGFloat(Float((rgbValue & 0xFF))/255.0), alpha: 1)
}

func viewRadius(view:UIView,radius:CGFloat) -> Void {
    view.layer.cornerRadius = radius
    view.layer.masksToBounds = true
}

/** 屏幕宽度*/
let kScreenWidth = UIScreen.main.bounds.size.width
/** 屏幕高度*/
let kScreenHeight = UIScreen.main.bounds.size.height

/** 是否为iPhoneX*/
let isiPhoneX = __CGSizeEqualToSize(CGSize.init(width: 1125, height: 2436), (UIScreen.main.currentMode?.size)!)
/** 是否为iPhone5*/
let isiPhone5 = __CGSizeEqualToSize(CGSize.init(width: 640, height: 1136), (UIScreen.main.currentMode?.size)!)

/** 基础设计颜色*/
let kAppBaseDesignColor = UIColorFromRGB(rgbValue: 0x5ca8ba)


